from fastapi import APIRouter

path_parameter = APIRouter()

@path_parameter.get("/items/{item_id}")
def read_item(item_id: int):
    return {"item_id": item_id}

@path_parameter.get("/users/{user_id}/items/{item_id}")
def read_user_item(user_id: int, item_id: int):
    return {"user_id": user_id, "item_id": item_id}

